<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<head>	
	<script type="text/javascript">
	$(document).ready(function(){ 
 		$(document).jkey('ctrl+f1',function(){
			$('#buscar').bPopup();
 			});	
	}); 
	</script>	
        <title>Main ho</title>
    </head>
<body>     
        <s:div align="center">
            <s:form action="SelectComboKnkey">
                <div align="center">
                    <table border="1" class="listado2">
                        <tr style="background: lightskyblue">
                            <td>
                                KNKEY
                            </td>
                            <td>
                                Company Name
                            </td>
                            <td>
                                Status
                            </td>
                            <td>
                                Creation Date
                            </td>
                            <td>
                                Updated
                            </td>
                            <td>
                                Action
                            </td>
                        </tr>
                        <s:iterator value="listaClientes">
                            <tr>
                                <td>
                                    <s:property value="knkey"/>
                                </td>
                                <td>
                                    <s:property value="companyname" />
                                </td>
                                <td>
                                    <s:property value="statusTrans" />
                                </td>
                                <td>
                                    <s:property value="creation" />
                                </td>
                                <td>
                                    <s:if test="updated == true">
                                        <img src="${pageContext.request.contextPath}/Imagenes/accept.png" />
                                    </s:if>
                                </td>
                                
                                <td>
                                    <s:if test="%{#session.usuarioSession.transition == true}">
                                        <s:a cssClass="buttonTablaAssign" action="SelectComboKnkey">
                                            <input type="button" value="Load"/>
                                            <s:param name="knkey2" value="knkey"></s:param>
                                            <s:param name="companyname" value="companyName"></s:param>
                                            <s:param value="id" name="idTransition"/>
                                            <s:param value="false" name="exportar"/>
                                        </s:a>
                                    </s:if>
<!--                                     <s:elseif test="%{#session.usuarioSession.Impl == true}"> -->
<!--                                         <s:a cssClass="buttonTablaAssign" action="SelectComboKnkey1"> -->
<!--                                             <input type="button" value="Detail"/> -->
<!--                                             <s:param name="knkey2" value="knkey"></s:param> -->
<!--                                             <s:param name="companyname" value="companyname"></s:param> -->
<!--                                             <s:param value="false" name="exportar"/> -->
<!--                                         </s:a> -->
<!--                                     </s:elseif> -->
<!--                                     <s:elseif test="%{#session.usuarioSession.COP == true}"> -->
<!--                                         <s:a cssClass="buttonTablaAssign" action="SelectComboKnkey2"> -->
<!--                                             <input type="button" value="Detail"/> -->
<!--                                             <s:param name="knkey2" value="knkey"></s:param> -->
<!--                                             <s:param name="companyname" value="companyname"></s:param> -->
<!--                                             <s:param value="false" name="exportar"/> -->
<!--                                         </s:a> -->
<!--                                     </s:elseif> -->
                                </td>
                            </tr>
                        </s:iterator>
                    </table>
                    </br>
                    </br>
                    </br>
                </div>

                <table align="center"><tr><td>

                        </td></tr>
                </table> 
                                                                  
            </s:form>
        </s:div>

        <s:div cssClass="divBlanco"></s:div>
        <s:div cssClass="contenidoAzul">
            <jsp:include page="/jsp/pie.jsp" flush="true" />
        </s:div>
        
         <div id="buscar" class="buscarKN">
         <div> <p class="logo">Search KNKEY </p></div>
          
         		
         	<div >
         	Inserted KnKey:<input type="text" name="knkey" id="knkey"> 
         	<button type="submit" onclick="searchClientKn()" class="center btn btn-primary">
								OK</button>
         	</div>
         	<br/>
         	<div id="contenidoKn">
         	
         	</div>
         </div>
</body>
</html>